Package-level declarations

Types

Link copied to clipboard
class ByteByByteFrameParser(unpacker: (b: Byte) -> List<ByteArray>, resetUnpacker: () -> Unit? = null) : FrameParser

Parser that calls a functional unpacker with each byte. The unpacker must maintain its internal state and return 0..N complete frames on each feed(byte) call.

Link copied to clipboard
class FixedSizeFrameParser(frameSize: Int, header: ByteArray = byteArrayOf(), footer: ByteArray = byteArrayOf()) : FrameParser

Compatible with legacy implementation: looks for an optional header, extracts fixed-size frames and validates an optional footer.

Link copied to clipboard
interface FrameParser
Link copied to clipboard

Reassembles incoming byte streams into complete frames using a FrameParser.